package com.example.springbootmybatis.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;

/**
 * @Authther: mrwu
 * @date:2021/3/26-03
 * @Description:com.example.springbootmybatis.config
 */
//@Component
public class DriudConfig {

//    @ConfigurationProperties(prefix = "spring.datasource")
//    @Bean
//    public DataSource getDataSource(){
//        return new DruidDataSource();
//    }
}
